var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navHeight: app.globalData.navHeight + 'px', //头部距离
    rolename: '',
  },

  onLoad() {
    let mobile = wx.getStorageSync('mobile').split('')
    mobile.splice(3, 4, '****')
    this.setData({
      phone: mobile.join('')
    })
  },
  onShow() {
    this.setData({
      rolename: app.globalData.rolename,
    })
  },

  // 跳转身份认证界面
  onAuthentication() {
    wx.navigateTo({
      url: '/pages/authentication/authentication',
    })
  }
})